let oUl = document.getElementById("pageIndexUl");
oUl.innerHTML += oUl.innerHTML;
let aLi = document.querySelectorAll(".IndexLi");
oUl.style.width = aLi.length * aLi[0].offsetWidth + "px";
let speed=-2;
let clock = null;
let move=()=>{
    if(oUl.offsetLeft<-oUl.offsetWidth/2){
        oUl.style.left='0';
    }
    if(oUl.offsetLeft>0){
        oUl.style.left=-oUl.offsetWidth/2+'px';
    }
    oUl.style.left=oUl.offsetLeft+speed+'px';
}
clock=setInterval(move,30);
oUl.addEventListener('mouseover',function (){
    clearInterval(clock);
});
oUl.addEventListener('mouseout',function (){
    clock=setInterval(move,30);
})
